<div class="da-form-col-8-8">
    <label>Danh sách đơn hàng</label>
    <div class="da-form-item large">

        <table class="da-table" style="border: 1px solid #ddd;">
            <thead>
                <tr>
                    <th><input id="check_all" type="checkbox" title="Check all" checked="checked"></th>
                    <th>Mã đơn hàng</th>
                    <th>Khách hàng</th>
                    <th>Đồ giặt</th>
                    <th>Thành tiền</th>
                    <th>Ngày tạo</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($bills as $i => $bill):?>
                    <tr class="<?php echo ($i%2==0) ? 'odd' : 'even'?>">
                        <td><input name="bill[]" class="bill" price="<?php echo $bill->price?>" value="<?php echo $bill->id?>" type="checkbox" checked="checked"></td>
                        <td><?php echo $bill->code?></td>
                        <td><?php echo $bill->customerNameOnly?> - <?php echo $bill->customer->phone?> </td>
                        <td><?php echo $bill->listItemHtml?></td>
                        <td><?php echo $bill->price?>k</td>
                        <td><?php echo $bill->created?></td>
                    </tr>
                    <?php endforeach?>
            </tbody>
        </table>
        <div>
            <button type="button" class="da-button" id="calc">Tính tổng tiền</button>
        </div>

        <div style="font-size: 20px; font-weight: bold;">
            <span id="price_total"></span>
            <span id="operator"></span>
            <span id="price_return"></span>
            <span id="commission"></span>
        </div>
        
    </div>


</div>